package test3_17.PersonData;

public class Adult extends Residents{
    /*
    而成人继承自居民，多包含学历、职业两项数据
     */
    private String Education;
    private String Occupation;

    public Adult(String ID, String birthDate, String name, String education, String occupation) {
        super(ID, birthDate, name);
        Education = education;
        Occupation = occupation;
    }

    public String getEducation() {
        return Education;
    }

    public void setEducation(String education) {
        Education = education;
    }

    public String getOccupation() {
        return Occupation;
    }

    public void setOccupation(String occupation) {
        Occupation = occupation;
    }
}
